(function (angular) {
    'use strict';

angular.module('xianwan').controller('SettingController', 
    ['$scope', '$rootScope', '$timeout',
        function ($scope, $rootScope, $timeout) {
            $scope.settingContent = 'performance';

            // 关闭模板
            $scope.closePanel = function() {
                $rootScope.$emit('closePanel',null);
                $scope.settingContent = 'performance';
            }
            // 切换模板
            $scope.showSettingPanel = function (content) {
                $scope.settingContent = content;
            }
        }
    ]);
})(angular);